<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>后街、后街交友、同城交友、交友</title>
<meta name="keywords" content="后街、后街交友、同城交友、交友、交友平台">
<script src="${pageContext.request.contextPath}/js/jquery-1.7.2.js"></script>
<script src="${pageContext.request.contextPath}/js_customer/sinfo/loufeng.js"></script>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/customer/ucenter.css">
<meta name="description"
	content="寻找志同道合的朋友；交友、聊天、游戏、泡吧，让您在忙碌的工作之余,找到志同道合的朋友,享受快乐人生.">
<meta name="robots" content="index, follow">
<meta name="googlebot" content="index, follow">
<script type="text/javascript">
	function showLink(){
		$(this).find('.ucenter-pic a').css('display', 'block');
	}
</script>
</head>
<body>
	<!--头部 s-->
	<c:import url="../common/newHeader.jsp"></c:import>
	<!--头部 e-->
	
	<div class="w980 sinfo_test_center" style="height: 30px;">
		<a href="${pageContext.request.contextPath}/" class="sinfo_homepage" title="首页"></a>
		<em>&nbsp;&nbsp;&gt;&nbsp;&nbsp;</em>
		<a href="${pageContext.request.contextPath}/" title="上海">后街交友</a>
		<em>&nbsp;&nbsp;&gt;&nbsp;&nbsp;</em>
		<span>[技术讨论区]</span>
	</div>
	<div class="w980 clearfix sinfo_border_color999">
		<div style="padding: 10px 15px;">
			<span class="sinfo_font_title">【龙凤信息】</span>
			&nbsp;&nbsp;今日：
			<span class="sinfo_font_weight700">2204</span>
			&nbsp;&nbsp;主题：<span class="sinfo_font_weight700">232</span>
			<span style="float:right;"><a href="javascript:void(0)" class="sinfo_shoucang">收藏本版</a>&nbsp;|&nbsp;<a href="javascript:void(0)" class="sinfo_dingyue">订阅</a></span>
			<br/>
			版主评分标准
			<br/>
			1.基本信息分：信息满分为10魅力，必须将MM基本信息填写完整，既可获得10魅力
			<br/>
			2.见面感受分：感受满分为30魅力，200文字以下的无魅力，200-500字的5魅力，500字以上的15魅力，文笔好，有感染力的，再追加1-15魅力
			<br/>
			2.网友照片分：照片满分为10魅力，空间照每张2魅力，原创现场照直接10魅力
			<br/>
			凡是按照发帖标准达到+40魅力以上的，并且必须获得信息分的将直接授予“诚信会员”勋章
			<br/>
			<br/>
			紫色贴说明该帖信息为站长亲点推举的MM
			<br/>
			橙色帖说明该贴信息为照片真实，其他情况不确定
			<br/>
			褐色帖说明该贴信息全部情况不确定
			<br/>
			黑色帖说明该帖信息为完全虚假
			<br/>
		</div>
	</div>
	<form id="submitForm" action="${pageContext.request.contextPath}/sinfo/getAllLoufeng.aspx" method="post">
		<input type="hidden" id="query_page" name="page" value="${page}"/>
		<input type="hidden" id="query_pageSize" name="pageSize" value="${pageSize==0?20:pageSize}">
		<input type="hidden" id="query_total" name="total" value="${total}">
		<input type="hidden" id="query_cityId" name="cityId" value="${cityId}">
		<input type="hidden" id="query_areaId" name="areaId" value="${areaId}">
		<input type="hidden" id="query_days" name="days" value="${days}">
		<input type="hidden" id="query_orderBy" name="orderBy" value="${orderBy==null?'':orderBy}">
		<input type="hidden" id="query_jinghua" name="jinghua" value="${jinghua==null?'':jinghua}">
		<input type="hidden" id="query_tuijian" name="tuijian" value="${tuijian==null?'':tuijian}">
	</form>
	<div class="w980 clearfix sinfo_test_center" style="height: 42px;padding-top: 8px;">
		<span><a href="${pageContext.request.contextPath}/post/publishPost.aspx" id="signup" class="signup">发新帖</a></span>
		<span class="sinfo_page" style="height: 26px;float: right;">
			<c:if test="${page>1}">
				<a href="javascript:void(0)" onclick="changePageAndSubmit(${page-1})" class="left">上一页</a>
				<c:if test="${page>=4}">
					<a href="javascript:void(0)" onclick="changePageAndSubmit(1)">1</a>
					<a href="javascript:void(0)" >...</a>
				</c:if>
				<c:if test="${page==3}">
					<a href="javascript:void(0)" onclick="changePageAndSubmit(1)">1</a>
					<a href="javascript:void(0)" onclick="changePageAndSubmit(2)">2</a>
				</c:if>
				<c:if test="${page==2}">
					<a href="javascript:void(0)" onclick="changePageAndSubmit(1)">1</a>
				</c:if>
			</c:if>
			<a href="javascript:void(0)" onclick="changePageAndSubmit(${page})" class="current">${page}</a>
			<c:if test="${page<totalPage}">
				<c:if test="${totalPage-page>=3}">
					<a href="javascript:void(0)" >...</a>
					<a href="javascript:void(0)" onclick="changePageAndSubmit(${totalPage})">${totalPage}</a>
				</c:if>
				<c:if test="${totalPage-page==2}">
					<a href="javascript:void(0)" onclick="changePageAndSubmit(${totalPage-1})">${totalPage-1}</a>
					<a href="javascript:void(0)" onclick="changePageAndSubmit(${totalPage})">${totalPage}</a>
				</c:if>
				<c:if test="${totalPage-page==1}">
					<a href="javascript:void(0)" onclick="changePageAndSubmit(${totalPage})">${totalPage}</a>
				</c:if>
			</c:if>
			<span><input type="text" width="20px" height="16px" id="gotoPage1" size="1"/>&nbsp;/&nbsp;共${totalPage}页</span>
			<c:if test="${page<totalPage}">
				<a href="javascript:void(0)" onclick="changePageAndSubmit(${page+1})" class="right">下一页</a>
			</c:if>
		</span>
	</div>
	<div class="w980 clearfix sinfo_page" style="border-top: 2px solid #E0E0E0;padding: 5px 0px 6px;">
		<c:choose>
			<c:when test="${areaId==0}">
				<a href="javascript:void(0)" onclick="changeAreaAndSubmit(0)" class="current">全部</a>
			</c:when>
			<c:otherwise>
				<a href="javascript:void(0)" onclick="changeAreaAndSubmit(0)">全部</a>
			</c:otherwise>
		</c:choose>
		
		<c:forEach items="${areas}" var="area">
			<%-- <a href="javascript:void(0)" onclick="changeAreaAndSubmit(${area.id})">${area.name}</a> --%>
			<c:choose>
			<c:when test="${areaId==area.id}">
				<a href="javascript:void(0)" onclick="changeAreaAndSubmit(${area.id})" class="current">${area.name}</a>
			</c:when>
			<c:otherwise>
				<a href="javascript:void(0)" onclick="changeAreaAndSubmit(${area.id})">${area.name}</a>
			</c:otherwise>
			</c:choose>
		</c:forEach>
	</div>
	<div class="w980 clearfix sinfo_border_color999">
		<div class="sinfo_query_param">
			<table style="width: 960px;">
				<tr style="width: 960px;">
				<td style="float: left;width: 670px;">
					筛选:
					<a href="javascript:void(0)" id="quanbushijian_a">
						<c:if test="${days==0}">全部楼凤</c:if>
						<c:if test="${days==1}">一天内</c:if>
						<c:if test="${days==2}">两天内</c:if>
						<c:if test="${days==7}">一周内</c:if>
						<c:if test="${days==30}">一个月内</c:if>
						<c:if test="${days==90}">三个月内</c:if>
						<!-- &nbsp; -->
						<em class="sinfo_query_param_e"></em>
					</a>
					&nbsp;
					排序:
					<a href="javascript:void(0)" id="fatieshijian_a">
						发布时间
						<em class="sinfo_query_param_e"></em>
					</a>
					&nbsp;
					|
					<a href="javascript:void(0)">精华</a>
					|
					<a href="javascript:void(0)">推荐</a>
				</td>
				<td style="float: left;width: 105px;">
					<span>发布人</span>
				</td>
				<td style="float: left;width: 80px;">
					<span>回复/访问</span>
				</td>
				<td style="float: left;width: 105px;">
					<span>最后回复</span>
				</td>
				</tr>
			</table>
			<div id="fatieshijian_div">
				<div>默认排序</div>
				<div>发布时间</div>
				<div>回复/查看</div>
				<div>最后回复</div>
				<div>热门</div>
			</div>
			<div id="quanbushijian_div">
				<div onclick="selectDateAndSubmit(0)">全部楼凤</div>
				<div onclick="selectDateAndSubmit(1)">一天内</div>
				<div onclick="selectDateAndSubmit(2)">两天内</div>
				<div onclick="selectDateAndSubmit(7)">一周内</div>
				<div onclick="selectDateAndSubmit(30)">一个月内</div>
				<div onclick="selectDateAndSubmit(90)">三个月内</div>
			</div>
		</div>
		<div class="w960">
			<table style="width: 100%;"  cellspacing="0" cellpadding="0">
				<c:if test="${posts!=null && posts.size()>0}">
					<c:forEach items="${posts}" var="post">
						<tbody style="width: 100%;">
							<tr style="width: 100%;">
								<td class="icn"><img alt="公告" src="${pageContext.request.contextPath}/img/sinfo/ann_icon.gif"/></td>
								<th>
									<strong class="xst">
										<b>公告:</b>
										<a target="_blank" href="${pageContext.request.contextPath}/post/getPostById.aspx?postId=${post.id}">
											<b>
												<font color="#EE1B2E">${post.title}</font>
											</b>
										</a>
									</strong>
								</th>
								<td class="by">
									<cite>
										<a href="javascript:void(0)">${post.customer.userName}</a>
									</cite><br/>
									<em><span>${post.publishTime}</span></em>
								</td>
								<td class="num"> </td>
								<td class="by"> </td>
							</tr>
						</tbody>
					</c:forEach>
				</c:if>
				<!-- 这里是分割用的 -->
				<tbody style="width: 100%;">
					<tr style="width: 100%;height:25px;background-color: #F5F5F5;border-bottom: 1px solid #bbbbbb;">
						<td> </td>
						<th> </th>
						<td> </td>
						<td> </td>
						<td> </td>
					</tr>
				</tbody>
				<!-- 这里是分割用的 -->
				<c:choose>
				<c:when test="${list!=null && list.size()>0}">
				  <c:forEach items="${list}" var="post">
				<tbody><tr>
						<td class="icn">
							<img src="${pageContext.request.contextPath}/img/sinfo/folder_new.gif">
						</td>
						<th class="new">
							<%-- <em>[<a href="javascript:void(0)"><c:out value="${post.area.name}"/></a>]</em> --%> 
							<a class="xst" href="${pageContext.request.contextPath}/post/getPostById.aspx?postId=${post.id}">
								<c:out value="${post.title}"/>
							</a>
							<img style="vertical-align: middle;" title="图片附件" alt="attach_img" src="${pageContext.request.contextPath}/img/sinfo/image_s.gif">
							<span class="tps">&nbsp;...<a href="thread-18000-2-1.html">2</a></span>
							<a class="xi1" href="">New</a>
							<%-- <c:if test="${sinfo.vip==true}">
								<span style="color: red;"><b>VIP可见</b></span>
							</c:if> --%>
						</th>
						<td class="by">
							<cite>
								<a href="javascript:void(0)">
									<c:out value="${post.customer.userName}"/>
									<%-- <c:choose>
									<c:when test="${sinfo.niming==true || sinfo.niming==null}">
										匿名
									</c:when>
									<c:otherwise>
									</c:otherwise>
									</c:choose> --%>
								</a>
							</cite>
							<br/>
							<em><span><c:out value="${post.publishTime}"/></span></em>
						</td>
						<td class="num"><a class="xi2" href="javascript:void(0)">${post.reply}</a><em>${post.click}</em></td>
						<td class="by">
							<cite><a href="javascript:void(0)">软弱的狮子</a></cite>
							<br/>
							<em><a href="javascript:void(0)"><span title="2013-9-30 05:31:10">5&nbsp;小时前</span></a></em>
						</td>
				    </tr>
				</tbody>
				  </c:forEach>
				</c:when>
				<c:otherwise>
					什么都没有
				</c:otherwise>
			</c:choose>
			</table>
		</div>
	</div>
	<div class="w980 clearfix sinfo_test_center" style="height: 42px;padding-top: 8px;">
		<span><a href="${pageContext.request.contextPath}/post/publishPost.aspx" id="signup" class="signup">发新帖</a></span>
		<span class="sinfo_page" style="height: 26px;float: right;">
			<c:if test="${page>1}">
				<a href="javascript:void(0)" onclick="changePageAndSubmit(${page-1});" class="left">上一页</a>
				<c:if test="${page>=4}">
					<a href="javascript:void(0)" onclick="changePageAndSubmit(1)">1</a>
					<a href="javascript:void(0)" >...</a>
				</c:if>
				<c:if test="${page==3}">
					<a href="javascript:void(0)" onclick="changePageAndSubmit(1)">1</a>
					<a href="javascript:void(0)" onclick="changePageAndSubmit(2)">2</a>
				</c:if>
				<c:if test="${page==2}">
					<a href="javascript:void(0)" onclick="changePageAndSubmit(1)">1</a>
				</c:if>
			</c:if>
			<a href="javascript:void(0)" onclick="changePageAndSubmit(${page})" class="current">${page}</a>
			<c:if test="${page<totalPage}">
				<c:if test="${totalPage-page>=3}">
					<a href="javascript:void(0)" >...</a>
					<a href="javascript:void(0)" onclick="changePageAndSubmit(${totalPage})">${totalPage}</a>
				</c:if>
				<c:if test="${totalPage-page==2}">
					<a href="javascript:void(0)" onclick="changePageAndSubmit(${totalPage-1})">${totalPage-1}</a>
					<a href="javascript:void(0)" onclick="changePageAndSubmit(${totalPage})">${totalPage}</a>
				</c:if>
				<c:if test="${totalPage-page==1}">
					<a href="javascript:void(0)" onclick="changePageAndSubmit(${totalPage})">${totalPage}</a>
				</c:if>
			</c:if>
			<span><input type="text" width="20px" height="16px" id="gotoPage2" size="1"/>&nbsp;/&nbsp;共${totalPage}页</span>
			<c:if test="${page<totalPage}">
				<a href="javascript:void(0)" onclick="changePageAndSubmit(${page+1})" class="right">下一页</a>
			</c:if>
		</span>
	</div>
	<!--footer s-->
	<c:import url="../common/newFooter.jsp"></c:import>
	<!--footer e-->

</body>
</html>